<!DOCTYPE html>

<!--
Copyright (C) 2014 vlasta81

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
-->
<?php 
if (!defined('SECURE') or SECURE <> 'XLKDZJRKWOSLCMG') : throw new Exception('Nemáte oprávnění přistupovat k souboru!');
endif;
?>
<html>
    <head>
        <meta charset="<?php echo CHARSET; ?>">
        <title><?php echo $title; ?></title>
        <link href="<?php echo WWW_PATH; ?>/public/css/main.css" rel="stylesheet" type="text/css">
        <script type="text/javascript" src="<?php echo WWW_PATH; ?>/public/js/jquery.js"></script>
    </head>

    <body>
        <div id="container">
            <div class="div-padding">
                <header id="header-main"><?php echo $header; ?></header>
                <nav id="nav-main"><?php echo $navigation; ?></nav>
                <div id="div-info"><?php echo $info; ?></div>
                <div id="div-contents">
                    <section id="section-userinfo">
                        <article id="article-userinfo"><?php echo $userinfo; ?></article>
                    </section>
                    <section class="section-contents">
                        <?php if (is_array($contents)) : foreach ($contents as $key => $value) : ?>
                        <article class="article-contents">
                            <header class="header-contents"><?php echo $key; ?></header>
                            <section class="section-article-contents"><?php echo $key; ?></section>
                            <footer class="footer-contents"><p><?php echo $key; ?></p></footer>
                        </article>
                        <?php endforeach; else : ?>
                        <article class="article-contents">
                            <header class="header-contents"><?php echo $contents; ?></header>
                            <section class="section-article-contents"><?php echo $contents; ?></section>
                            <footer class="footer-contents"><p><?php echo $contents; ?></p></footer>
                        </article>
                        <?php endif; ?>
                    </section>
                </div>
                <aside id="aside-main"><?php echo $aside; ?></aside>
                <div id="nav-side"><?php echo $navside; ?></div>
                <div id="bside-main"><?php echo $bside; ?></div>
                <footer id="footer-main"><?php echo $footer; ?></footer>
            </div>
        </div>
    </body>
</html>
